package service;

import dao.StudentDao;
import domain.Student;

import java.util.List;

public class StudentService {
    public void add(Student stu){
        new StudentDao().insert(stu);
    }

    public List<Student> findAll(){
        return  new StudentDao().selectAll();
    }


    public void delete(String id) {
        new StudentDao().delete(id);
    }


    public void update(String id) {
        new StudentDao().update(id);
    }
}
